<?php /* Smarty version 2.6.20, created on 2009-11-04 15:04:50
         compiled from sys_credits_act.setup.html */ ?>
<form action="../app/<?php echo $this->_tpl_vars['app_module']['app_module_sign']; ?>
/system.php?action=setup_save" method="post" id="form_add" name="form_add" style="padding-bottom:20px" >
	<table border="0" cellpadding="0" cellspacing="0" class="from_table">
		<tr>
			<th><?php echo $this->_tpl_vars['langSysAppManageName']; ?>
:</th>
			<td class="td rowform"><input name="app_module_name" type="text" id="app_module_name" class="txtinput" value="<?php echo $this->_tpl_vars['app_array']['app_module_name']; ?>
" /></td>
			<td class="vtop tips2"><?php echo $this->_tpl_vars['langSysAppManageNameRemark']; ?>
<label style="display:none" for="app_module_name" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<th><?php echo $this->_tpl_vars['langSysAppManageState']; ?>
:</th>
			<td class="td rowform">
				<input type="radio" name="app_module_state" value="0" checked="checked" /><?php echo $this->_tpl_vars['langSysAppManageShow']; ?>

				<input type="radio" name="app_module_state" value="1" /><?php echo $this->_tpl_vars['langSysAppManageHide']; ?>
</td>
			<td class="vtop tips2"><?php echo $this->_tpl_vars['langSysAppManageStateRemark']; ?>
</td>
		</tr>
		<tr>
			<th><?php echo $this->_tpl_vars['langSysAppManageSort']; ?>
:</th>
			<td class="td rowform"><input name='app_module_sort' type='text' id="app_module_sort" class="txtinput" value="<?php echo $this->_tpl_vars['app_array']['app_module_sort']; ?>
" /></td>
			<td class="vtop tips2"><?php echo $this->_tpl_vars['langSysAppManageSortRemark']; ?>
<label style="display:none" for="app_module_sort" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<th><?php echo $this->_tpl_vars['langSysAppManagePath']; ?>
:</th>
			<td class="td rowform"><input name='app_module_path' type='text' id="app_module_sort" class="txtinput" value="<?php echo $this->_tpl_vars['app_array']['app_module_path']; ?>
" /></td>
			<td class="vtop tips2"><?php echo $this->_tpl_vars['langSysAppManagePathRemark']; ?>
<label style="display:none" for="app_module_path" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<th><?php echo $this->_tpl_vars['langSysAppManageSysPath']; ?>
:</th>
			<td class="td rowform"><input name='app_module_sys_path' type='text' id="app_module_sys_path" class="txtinput" value="<?php echo $this->_tpl_vars['app_array']['app_module_sys_path']; ?>
" /></td>
			<td class="vtop tips2"><?php echo $this->_tpl_vars['langSysAppManageSysPathRemark']; ?>
<label style="display:none" for="app_module_sys_path" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<td></td>
		    <td colspan="2">
			  <span class="btn_left"><input type="submit"  value="<?php echo $this->_tpl_vars['langSysAppManageSetup']; ?>
" class="btn_submit" /></span>
			  <span class="btn_left"><input type="button" value="<?php echo $this->_tpl_vars['langSysAppManageReturn']; ?>
" class="btn_submit" onclick="ShowDiv='result_content';getPageContent('app_module.manage.php?action=ajax_list');" /></span>
			 </td>
		</tr>
	</table>
</form>
<script>
$(document).ready(function() {
	var options_add = {
		beforeSubmit:  function(){showLoading(showText);},
		success:       function(msg){
							hideLoading();
							showMessage(msg.message,msg.type);
							if(msg.type == '1'){
								ShowDiv = "result_content";
								getPageContent("app_module.manage.php?action=ajax_list");
							}
						},
		type:      'post',
		dataType:  'json'
	};
	
	$("#form_add").validate({
		errorClass: "wrong",
		rules: {
			app_module_name: {required:true},
			app_module_sort: {required:true,number:true},
			app_module_path: {required:true},
			app_module_sys_path: {required:true}
		},
		messages: {
			app_module_name: {required:"<?php echo $this->_tpl_vars['errSysAppManageNameIsEmpty']; ?>
"},
			app_module_sort: {required:"<?php echo $this->_tpl_vars['errSysAppManageSortNotNumber']; ?>
",number:"<?php echo $this->_tpl_vars['errSysAppManageSortNotNumber']; ?>
"},
			app_module_path: {required:"<?php echo $this->_tpl_vars['errSysAppManagePathIsEmpty']; ?>
"},
			app_module_sys_path: {required:"<?php echo $this->_tpl_vars['errSysAppManageSysPathIsEmpty']; ?>
"}
		},
		submitHandler: function() {
			$('#form_add').ajaxSubmit(options_add);
		}
	});
});
</script>